package com.sixkey.service;

import com.sixkey.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sixkey.entity.vo.MessageVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2023-10-27
 */
public interface IMessageService extends IService<Message> {

    List<Map<String, Object>> getHistoryMessage(int id);

    List<Map<String, Object>> getHistoryMessageByOneself(int id);

    int getBadge(int id);

    void saveMessage(MessageVo messageVo);

    Map<String, Object> getMessage(int id);

    List<Map<String, Object>> getNewMessage(int id);

    Map<String,Object> queryList(Integer pageNo, Integer pageSize);
}
